<template>
  <div id="ranking-board">
    <div class="ranking-board-title">过去一小时降雨量排行</div>
    <dv-scroll-ranking-board :config="config" />
  </div>
</template>

<script>
export default {
  name: "RankingBoard",
  data() {
    return {
      config: {
        data: [
          {
            name: "驿城区",
            value: 55,
          },
          {
            name: "舞钢市",
            value: 120,
          },
          {
            name: "桐柏县",
            value: 78,
          },
          {
            name: "罗山县",
            value: 66,
          },
          {
            name: "西平县",
            value: 80,
          },
          {
            name: "上蔡县",
            value: 80,
          },
          {
            name: "遂平县",
            value: 80,
          },
          {
            name: "新蔡县",
            value: 80,
          },
          {
            name: "息县",
            value: 80,
          },
        ],
        rowNum: 9,
      },
    };
  },
};
</script>

<style >
#ranking-board {
  width: 20%;

  box-shadow: 0 0 3px blue;
  display: flex;
  flex-direction: column;
  background-color: rgba(6, 30, 93, 0.5);
  border-top: 2px solid rgba(1, 153, 209, 0.5);
  box-sizing: border-box;
  padding: 0px 30px;
}
#ranking-board .ranking-board-title {
  font-weight: bold;
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 20px;
}

#ranking-board .dv-scroll-ranking-board {
  flex: 1;
}
</style>
